import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);

const router = new VueRouter({
     routes : [
         {
             path : "/",
             component : ()=>{return import('./components/home.vue')}
         },
         {
            path: "/home",
            component: ()=>{return import('./components/home.vue')}
         },
         {
             path : "/page/:classify/:title",
             component : ()=>{return import('./components/page.vue')}
         },
         {
             path : '/writePage',
             component : ()=>{return import('./components/writePage.vue')}
         },
         {
             path : "*",
             component : ()=>{return import('./components/classPage.vue')}
         }
     ]
})

export default router